package nl.hengelsportmolenberg.boilies.client.event;

import com.google.gwt.event.shared.GwtEvent;

public class EditCustomerEvent extends GwtEvent<EditCustomerEventHandler> {
	public static Type<EditCustomerEventHandler> TYPE = new Type<EditCustomerEventHandler>();
	private final int id;
	
	public EditCustomerEvent(int id) {
		this.id = id;
	}
	
	public int getId() { return id; }
	
	@Override
	public Type<EditCustomerEventHandler> getAssociatedType() {
		return TYPE;
	}
	
	@Override
	protected void dispatch(EditCustomerEventHandler handler) {
		handler.onEditCustomer(this);
	}
}
